//	--------------------------------------------------------------------
//	Copyright(C) 2006,2007 Zhao Yukun. All rights reserved.
//	This file is a part of the Xeres system.
//	Xeres 2007
//	Contact : xeres.engine@gmail.com
//	$(reservedInfo)
//	$(reservedDeclaration)
//	--------------------------------------------------------------------
///	@file	<CXmlFileHandler.h>
///	@path	~/src/database/xres/
///	@date	2007/12/03
///	@desc	Converts XML file to data entry.

#pragma once

#include "xeres.h"

#include "database/store/IFileHandler.h"

namespace xeres {

	/*!
		\class	CXmlFileHandler
		\brief	Converts XML file to data entry.
	*/
	class CXmlFileHandler : public IFileHandler
	{
	public:

		/// \ctor
		CXmlFileHandler( void );

		/// \dtor
		virtual ~CXmlFileHandler( void );

		DECL_IOBJECT_CLASS( CXmlFileHandler , IFileHandler );

	public:

	//@ interface

		/*!
			\brief		Loads a file into corresponding data entry.
		*/
		virtual RefPass<IData> LoadFile( const Key& ext , RefWeak<IFile> file );

	private:

	// @ data

	};

} // namespace xeres
